|
RAIS
3.2
|
This class implements UI Common methods for user management. More...
Classes | |
| class | AccessRight |
| This class implements UI Common methods for user access rights. More... | |
Static Public Member Functions | |
| static Users | GetLevelThreeUsers () |
| static bool | createUserAssignmentForUser (UserAssignment ua, UserData ud, ref string outputMessage) |
| static bool | editUserAssignment (UserAssignment ua, ref string outputMessage) |
| static bool | deleteUserAssignment (UserAssignment ua, ref string outputMessage) |
| static void | ApplyAccessRights (Page page) |
| This method applies current user's access rights to the specified page. | |
| static void | EnableCommonControls (Page page, bool enable) |
| This method enables or disables common pages controls. | |
| static bool | InitializeSiteMapTree (TreeView siteMap, XmlDocument siteMapDoc) |
| This method initializes site map tree view control for the current session. | |
| static void | InitializeAllMasksUserAccessRights (Page page) |
| This method initializes user access rights for the all site pages. | |
| static void | RestoreSiteMapExtensionState (TreeNodeCollection treeNodes, ExpandedNodes expandedNodes, string selectedNodePath) |
| This method restores extension state of the treeview nodes. | |
| static bool | RestoreSelectedNode (TreeNodeCollection treeNodes, string selectedNodePath) |
| This method restores selected node. | |
| static void | ProcessTreeViewOnRedirect (TreeView siteMap) |
| This method saves site map tree view expansion state and redirects to the URL in the selected node's value. | |
| static void | InitializeUserTypesList (DropDownList list) |
| This method implements initialization of user type selection control. | |
| static void | InitializeUsersList (DropDownList list) |
| This method implements initialization of users selection control. | |
| static void | InitializeUsersListBox (ListBox list) |
| This method implements initialization of users selection control. | |
| static void | InitializeCustomUsersListBox (ListBox list, List< UserData > users) |
| static void | InitializeDataRoles (Page page) |
| This method implements initialization of data roles' collection Data roles are retrieved from DB and saved in the session disciotnary. | |
| static void | InitializeDataRolesListPlusEmptyRow (DropDownList list) |
| This method implements initialization of data role selection control and add empty row for [FK Data Role ID] NULL DB value. | |
| static void | InitializeDataRolesList (DropDownList list) |
| This method implements initialization of data role selection control. | |
| static void | InitializeDataRolesListBox (ListBox list) |
| This method implements initialization of data role selection control. | |
| static void | InitializeDataRolesListBox (ListBox list, string selection) |
| This method implements initialization of data role selection control. | |
| static void | InitializePracticesList (DropDownList list) |
| This method implements initialization of practice selection control with all available practices. | |
| static void | InitializePracticesListPlusEmptyRow (DropDownList list) |
| This method implements initialization of practices selection control with all available practices plus empty row for [FK Practice ID] NULL DB value. | |
| static void | InitializeFacilitiesListPlusEmptyRow (DropDownList list) |
| This method implements initialization of facilities selection control with all available facilities plus empty row for [FK Facility ID] NULL DB value. | |
| static void | InitializeFacilitiesList (DropDownList list) |
| This method implements initialization of facilities selection control with all available facilities. | |
| static void | InitializeFacilitiesList (DropDownList list, string regionName, string districtName) |
| This method implements initialization of facilities selection control with th facilities of the specified region and district. | |
| static void | InitializeDistrictsListWithEmptyRow (DropDownList list, string regionName) |
| This method implements initialization of districts selection control. | |
| static void | InitializeDistrictsList (DropDownList list, string regionName) |
| This method implements initialization of districts selection control. | |
| static void | InitializeRegionsListWithEmptyRow (DropDownList list, DataRole dataRole) |
| This method implements initialization of region selection control. | |
| static void | InitializeRegionsList (DropDownList list, DataRole dataRole) |
| This method implements initialization of region selection control. | |
| static void | InitializeDataRoleAttributesList (ListBox list, DataRole dataRole) |
| This method implements initialization of data role attributes selection control. | |
| static void | InitializeFuncitonRoleAttributesList (ListBox list, FunctionRole functionRole, string[] accessNames) |
| This method implements initialization of data role attributes selection control. | |
| static void | InitializeFunctionalRoles (Page page) |
| This method implements initialization of funcitonal roles' collection Functional roles are retrieved from DB and saves in the session disciotnary. | |
| static void | InitializePredefinedFunctionalRoles (Page page) |
| This method implements initialization of predefined funcitonal roles' collection Functional roles are retrieved from DB and saves in the session disciotnary. | |
| static void | InitializeFunctionalRolesListPlusEmptyRow (DropDownList list) |
| This method implements initialization of functional role selection control and add empty row for [FK Functional Role ID] NULL DB value. | |
| static void | InitializeFunctionalRolesList (DropDownList list) |
| This method implements initialization of funcitonal role selection control. | |
| static void | InitializePredefinedFunctionalRolesList (DropDownList list) |
| This method implements initialization of predefined funcitonal role selection control. | |
| static void | InitializeFunctionalRolesListBox (ListBox list) |
| This method implements initialization of funcitonal role selection control. | |
| static void | InitializeFunctionalRolesListBox (ListBox list, string selection) |
| This method implements initialization of funcitonal role selection control. | |
| static void | InitializeFunctionalRolesListByUserType (DropDownList list, UserTypeData userTypeData) |
| This method implements initialization of funcitonal role selection control. | |
| static void | InitializeValidationList (DropDownList list) |
| This method implements initialization of validaiton selection control. | |
| static void | InitializeUserTypeList (DropDownList list) |
| This method implements initialization of user type selection control. | |
| static void | InitializeCategoriesList (DropDownList list, FunctionRole role) |
| This method implements initialization of categories selection control. | |
| static void | InitializeSubcategoriesList (DropDownList list, FunctionRole.Category category, FunctionRole role) |
| This method implements initialization of subcategories selection control. | |
| static void | InitializeMasksList (DropDownList list, FunctionRole.Category category, FunctionRole.Subcategory subcategory, FunctionRole role) |
| This method implements initialization of mask selection control. | |
| static Facility | GetFacilityByID (int facilityID) |
| This method gets Facility object by facility ID. | |
| static Dictionary< string, string > | GetUserStatusesHistoryByUser (Page page, UserData user, bool reset) |
| static void | InitializeUserStatusesListBox (ListBox list, UserData user) |
| This method implements initialization of user statuses selection control. | |
| static Department | GetDepartmentByID (int departmentID) |
| This method gets Department object by department ID. | |
| static void | ApplyAccessRightsToControls (ControlCollection controls) |
| This method applies current user's access rights to the specified controls collection. | |
| static void | ApplyViewRightToControl (Control control) |
| This method applies current user's view access right to the specified control. | |
| static void | ApplyEditRightToControl (Control control) |
| This method applies current user's edit access right to the specified control. | |
| static bool | AccessToCategoryAllowed (string categoryName, Page page) |
| This method saves expansion state of the tree view control in the Session. | |
| static MessageBoxRestrictions | getActiveMessageBoxRestrictionsForUser (UserData user) |
| static MessageBoxRestrictions | getActiveMessageBoxRestrictionsForUser (UserData user, DateTime selectedDate) |
| static DataRole | getMessageBoxDataRoleByUser (UserData user) |
| static DataRole | getMessageBoxDataRoleByUserAndDate (UserData user, DateTime date) |
| static List< UserData > | GetUserFreeToTakeOver () |
| static bool | clearTakeOverForUser (UserData user) |
| static List < MessageBoxRestriction > | MessageboxRestrictionHistoryForUser (UserData user, ref string returnMessage) |
Properties | |
| static UserTypes | UserTypes [get] |
| This method retrieves from ALL a list of all supported user types. | |
| static bool RAIS::UI::Common::UserManagement::AccessToCategoryAllowed | ( | string | categoryName, |
| Page | page | ||
| ) | [static] |
This method saves expansion state of the tree view control in the Session.
| siteMap | treeview control |
Definition at line 961 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::ApplyAccessRights | ( | Page | page | ) | [static] |
This method applies current user's access rights to the specified page.
| page | Page |
Definition at line 106 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::ApplyAccessRightsToControls | ( | ControlCollection | controls | ) | [static] |
This method applies current user's access rights to the specified controls collection.
| controls | Controls collection |
Definition at line 894 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::ApplyEditRightToControl | ( | Control | control | ) | [static] |
This method applies current user's edit access right to the specified control.
| control | Control |
Definition at line 916 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::ApplyViewRightToControl | ( | Control | control | ) | [static] |
This method applies current user's view access right to the specified control.
| control | Control |
Definition at line 907 of file UserManagement.cs.
| static bool RAIS::UI::Common::UserManagement::clearTakeOverForUser | ( | UserData | user | ) | [static] |
Definition at line 1434 of file UserManagement.cs.
| static bool RAIS::UI::Common::UserManagement::createUserAssignmentForUser | ( | UserAssignment | ua, |
| UserData | ud, | ||
| ref string | outputMessage | ||
| ) | [static] |
Definition at line 73 of file UserManagement.cs.
| static bool RAIS::UI::Common::UserManagement::deleteUserAssignment | ( | UserAssignment | ua, |
| ref string | outputMessage | ||
| ) | [static] |
Definition at line 85 of file UserManagement.cs.
| static bool RAIS::UI::Common::UserManagement::editUserAssignment | ( | UserAssignment | ua, |
| ref string | outputMessage | ||
| ) | [static] |
Definition at line 79 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::EnableCommonControls | ( | Page | page, |
| bool | enable | ||
| ) | [static] |
This method enables or disables common pages controls.
| page | Page |
| enable |
Definition at line 117 of file UserManagement.cs.
| static MessageBoxRestrictions RAIS::UI::Common::UserManagement::getActiveMessageBoxRestrictionsForUser | ( | UserData | user | ) | [static] |
Definition at line 1405 of file UserManagement.cs.
| static MessageBoxRestrictions RAIS::UI::Common::UserManagement::getActiveMessageBoxRestrictionsForUser | ( | UserData | user, |
| DateTime | selectedDate | ||
| ) | [static] |
Definition at line 1409 of file UserManagement.cs.
| static Department RAIS::UI::Common::UserManagement::GetDepartmentByID | ( | int | departmentID | ) | [static] |
This method gets Department object by department ID.
| departmentID | - ID of department in DB |
Definition at line 884 of file UserManagement.cs.
| static Facility RAIS::UI::Common::UserManagement::GetFacilityByID | ( | int | facilityID | ) | [static] |
This method gets Facility object by facility ID.
| facilityID | - ID of facility in DB |
Definition at line 842 of file UserManagement.cs.
| static Users RAIS::UI::Common::UserManagement::GetLevelThreeUsers | ( | ) | [static] |
Definition at line 67 of file UserManagement.cs.
| static DataRole RAIS::UI::Common::UserManagement::getMessageBoxDataRoleByUser | ( | UserData | user | ) | [static] |
Definition at line 1417 of file UserManagement.cs.
| static DataRole RAIS::UI::Common::UserManagement::getMessageBoxDataRoleByUserAndDate | ( | UserData | user, |
| DateTime | date | ||
| ) | [static] |
Definition at line 1423 of file UserManagement.cs.
| static List<UserData> RAIS::UI::Common::UserManagement::GetUserFreeToTakeOver | ( | ) | [static] |
Definition at line 1429 of file UserManagement.cs.
| static Dictionary<string, string> RAIS::UI::Common::UserManagement::GetUserStatusesHistoryByUser | ( | Page | page, |
| UserData | user, | ||
| bool | reset | ||
| ) | [static] |
Definition at line 847 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeAllMasksUserAccessRights | ( | Page | page | ) | [static] |
This method initializes user access rights for the all site pages.
Definition at line 160 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeCategoriesList | ( | DropDownList | list, |
| FunctionRole | role | ||
| ) | [static] |
This method implements initialization of categories selection control.
| list | Drop-down list instance to be populated |
Definition at line 790 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeCustomUsersListBox | ( | ListBox | list, |
| List< UserData > | users | ||
| ) | [static] |
Definition at line 295 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeDataRoleAttributesList | ( | ListBox | list, |
| DataRole | dataRole | ||
| ) | [static] |
This method implements initialization of data role attributes selection control.
| list | Drop-down list instance to be populated |
Definition at line 563 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeDataRoles | ( | Page | page | ) | [static] |
This method implements initialization of data roles' collection Data roles are retrieved from DB and saved in the session disciotnary.
| page | Context page for getting the Session disctionary |
Definition at line 314 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeDataRolesList | ( | DropDownList | list | ) | [static] |
This method implements initialization of data role selection control.
| list | Drop-down list instance to be populated |
Definition at line 332 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeDataRolesListBox | ( | ListBox | list | ) | [static] |
This method implements initialization of data role selection control.
| list | List box instance to be populated |
Definition at line 350 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeDataRolesListBox | ( | ListBox | list, |
| string | selection | ||
| ) | [static] |
This method implements initialization of data role selection control.
| list | List box instance to be populated |
Definition at line 371 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeDataRolesListPlusEmptyRow | ( | DropDownList | list | ) | [static] |
This method implements initialization of data role selection control and add empty row for [FK Data Role ID] NULL DB value.
| list | Drop-down list instance to be populated |
Definition at line 323 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeDistrictsList | ( | DropDownList | list, |
| string | regionName | ||
| ) | [static] |
This method implements initialization of districts selection control.
| list | Drop-down list instance to be populated |
| regionName | The name of the region to select districts to |
Definition at line 514 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeDistrictsListWithEmptyRow | ( | DropDownList | list, |
| string | regionName | ||
| ) | [static] |
This method implements initialization of districts selection control.
| list | Drop-down list instance to be populated |
| regionName | The name of the region to select districts to |
Definition at line 504 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeFacilitiesList | ( | DropDownList | list | ) | [static] |
This method implements initialization of facilities selection control with all available facilities.
| list | Drop-down list instance to be populated |
Definition at line 452 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeFacilitiesList | ( | DropDownList | list, |
| string | regionName, | ||
| string | districtName | ||
| ) | [static] |
This method implements initialization of facilities selection control with th facilities of the specified region and district.
| list | Drop-down list instance to be populated |
Definition at line 465 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeFacilitiesListPlusEmptyRow | ( | DropDownList | list | ) | [static] |
This method implements initialization of facilities selection control with all available facilities plus empty row for [FK Facility ID] NULL DB value.
| list | Drop-down list instance to be populated |
Definition at line 443 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeFuncitonRoleAttributesList | ( | ListBox | list, |
| FunctionRole | functionRole, | ||
| string[] | accessNames | ||
| ) | [static] |
This method implements initialization of data role attributes selection control.
| list | List-box instance to be populated |
| functionRole | Functional role |
| array | of translated access names |
Definition at line 581 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeFunctionalRoles | ( | Page | page | ) | [static] |
This method implements initialization of funcitonal roles' collection Functional roles are retrieved from DB and saves in the session disciotnary.
| page | Context page for getting the Session disctionary |
Definition at line 634 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeFunctionalRolesList | ( | DropDownList | list | ) | [static] |
This method implements initialization of funcitonal role selection control.
| list | Drop-down list instance to be populated |
Definition at line 662 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeFunctionalRolesListBox | ( | ListBox | list | ) | [static] |
This method implements initialization of funcitonal role selection control.
| list | Drop-down list instance to be populated |
Definition at line 696 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeFunctionalRolesListBox | ( | ListBox | list, |
| string | selection | ||
| ) | [static] |
This method implements initialization of funcitonal role selection control.
| list | Drop-down list instance to be populated |
Definition at line 713 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeFunctionalRolesListByUserType | ( | DropDownList | list, |
| UserTypeData | userTypeData | ||
| ) | [static] |
This method implements initialization of funcitonal role selection control.
| list | Drop-down list instance to be populated |
Definition at line 745 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeFunctionalRolesListPlusEmptyRow | ( | DropDownList | list | ) | [static] |
This method implements initialization of functional role selection control and add empty row for [FK Functional Role ID] NULL DB value.
| list | Drop-down list instance to be populated |
Definition at line 653 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeMasksList | ( | DropDownList | list, |
| FunctionRole.Category | category, | ||
| FunctionRole.Subcategory | subcategory, | ||
| FunctionRole | role | ||
| ) | [static] |
This method implements initialization of mask selection control.
| list | Drop-down list instance to be populated |
Definition at line 823 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializePracticesList | ( | DropDownList | list | ) | [static] |
This method implements initialization of practice selection control with all available practices.
| list | Drop-down list instance to be populated #-# |
Definition at line 419 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializePracticesListPlusEmptyRow | ( | DropDownList | list | ) | [static] |
This method implements initialization of practices selection control with all available practices plus empty row for [FK Practice ID] NULL DB value.
| list | Drop-down list instance to be populated |
Definition at line 433 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializePredefinedFunctionalRoles | ( | Page | page | ) | [static] |
This method implements initialization of predefined funcitonal roles' collection Functional roles are retrieved from DB and saves in the session disciotnary.
| page | Context page for getting the Session disctionary |
Definition at line 644 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializePredefinedFunctionalRolesList | ( | DropDownList | list | ) | [static] |
This method implements initialization of predefined funcitonal role selection control.
| list | Drop-down list instance to be populated |
Definition at line 679 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeRegionsList | ( | DropDownList | list, |
| DataRole | dataRole | ||
| ) | [static] |
This method implements initialization of region selection control.
| list | Drop-down list instance to be populated |
Definition at line 547 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeRegionsListWithEmptyRow | ( | DropDownList | list, |
| DataRole | dataRole | ||
| ) | [static] |
This method implements initialization of region selection control.
| list | Drop-down list instance to be populated |
Definition at line 538 of file UserManagement.cs.
| static bool RAIS::UI::Common::UserManagement::InitializeSiteMapTree | ( | TreeView | siteMap, |
| XmlDocument | siteMapDoc | ||
| ) | [static] |
This method initializes site map tree view control for the current session.
| siteMap | Site map tree view control |
| siteMapDoc | Site map representation in an XML document |
Definition at line 128 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeSubcategoriesList | ( | DropDownList | list, |
| FunctionRole.Category | category, | ||
| FunctionRole | role | ||
| ) | [static] |
This method implements initialization of subcategories selection control.
| list | Drop-down list instance to be populated |
Definition at line 806 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeUsersList | ( | DropDownList | list | ) | [static] |
This method implements initialization of users selection control.
| list | Drop-down list instance to be populated |
Definition at line 271 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeUsersListBox | ( | ListBox | list | ) | [static] |
This method implements initialization of users selection control.
| list | Drop-down list instance to be populated |
Definition at line 284 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeUserStatusesListBox | ( | ListBox | list, |
| UserData | user | ||
| ) | [static] |
This method implements initialization of user statuses selection control.
| list | Drop-down list instance to be populated |
Definition at line 871 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeUserTypeList | ( | DropDownList | list | ) | [static] |
This method implements initialization of user type selection control.
| list | Drop-down list instance to be populated |
Definition at line 777 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeUserTypesList | ( | DropDownList | list | ) | [static] |
This method implements initialization of user type selection control.
| list | Drop-down list instance to be populated |
Definition at line 258 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::InitializeValidationList | ( | DropDownList | list | ) | [static] |
This method implements initialization of validaiton selection control.
| list | Drop-down list instance to be populated |
Definition at line 765 of file UserManagement.cs.
| static List<MessageBoxRestriction> RAIS::UI::Common::UserManagement::MessageboxRestrictionHistoryForUser | ( | UserData | user, |
| ref string | returnMessage | ||
| ) | [static] |
Definition at line 1443 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::ProcessTreeViewOnRedirect | ( | TreeView | siteMap | ) | [static] |
This method saves site map tree view expansion state and redirects to the URL in the selected node's value.
| siteMap | Site mapt tree view control |
Definition at line 223 of file UserManagement.cs.
| static bool RAIS::UI::Common::UserManagement::RestoreSelectedNode | ( | TreeNodeCollection | treeNodes, |
| string | selectedNodePath | ||
| ) | [static] |
This method restores selected node.
| treeNodes | tree control nodes |
| selectedNodePath | Value path of the selected node |
Definition at line 198 of file UserManagement.cs.
| static void RAIS::UI::Common::UserManagement::RestoreSiteMapExtensionState | ( | TreeNodeCollection | treeNodes, |
| ExpandedNodes | expandedNodes, | ||
| string | selectedNodePath | ||
| ) | [static] |
This method restores extension state of the treeview nodes.
| treeNodes | tree control nodes |
| expandedNodes | Collection of expanded nodes |
| selectedNodePath | Value path of the selected node |
Definition at line 176 of file UserManagement.cs.
UserTypes RAIS::UI::Common::UserManagement::UserTypes [static, get] |
This method retrieves from ALL a list of all supported user types.
Definition at line 96 of file UserManagement.cs.